import { useState } from 'react'
import routes from './router/Index'
import {BrowserRouter,useRoutes} from 'react-router-dom'
import './App.css'

function App() {
  const [count, setCount] = useState(0)
const El=()=>useRoutes(routes)
  return (
  <BrowserRouter>
  <El/>
  </BrowserRouter>
  )
}

export default App
